package com.mytaobao.main.firsttab.func.guessyoulike;


import com.baseproject.datasource.local.database.dao.annotation.DbField;
import com.baseproject.datasource.local.database.dao.annotation.DbTable;

/**
 * 建立表名和model名的对应关系
 */
@DbTable(ItemGuessYouLikeDao.Entry.TABLE_NAME)
public class ItemGuessYouLike {

    //服务端返回字段对应

    /**
     * 商品id
     */
    @DbField(ItemGuessYouLikeDao.Entry.COLUMN_NAME_ID)
    int id;
    /**
     * 商品描述
     */
    @DbField(ItemGuessYouLikeDao.Entry.COLUMN_NAME_TITLE)
    public String title;
    /**
     * 商品封面url
     */
    @DbField(ItemGuessYouLikeDao.Entry.COLUMN_NAME_COVER)
    public String coverUrl;
    /**
     * 已付款人数
     */
    @DbField(ItemGuessYouLikeDao.Entry.COLUMN_NAME_PAYED_COUNT)
    int payedCount;

    @DbField(ItemGuessYouLikeDao.Entry.COLUMN_NAME_PRICE)
    float price;


    public ItemGuessYouLike() {

    }

    public ItemGuessYouLike(int id, String title, String coverUrl, int payedCount, int price) {
        this.id = id;
        this.title = title;
        this.coverUrl = coverUrl;
        this.payedCount = payedCount;
        this.price = price;
    }

    public int getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPayedCount() {
        return payedCount;
    }

    public void setPayedCount(int payedCount) {
        this.payedCount = payedCount;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
